package com.augurit.smartform.database.change;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

import com.augurit.smartform.database.Column;
import com.augurit.smartform.database.Table;

public class ColumnChangeInfo {
	private Table newTable;
	private Table oldTable;
	private List<Column> addColumns=new ArrayList<Column>();
	private List<Column> delColumns=new ArrayList<Column>();
	private Map<String,ColumnModifyInfo> modifyColumns=new HashMap<String,ColumnModifyInfo>();
	public Table getNewTable() {
		return newTable;
	}
	public void setNewTable(Table newTable) {
		this.newTable = newTable;
	}
	public Table getOldTable() {
		return oldTable;
	}
	public void setOldTable(Table oldTable) {
		this.oldTable = oldTable;
	}
	public List<Column> getAddColumns() {
		return addColumns;
	}
	public void setAddColumns(Column addColumn) {
		this.addColumns.add(addColumn);
	}
	public List<Column> getDelColumns() {
		return delColumns;
	}
	public void setDelColumns(Column delColumn) {
		this.delColumns.add(delColumn);
	}
	public Map<String,ColumnModifyInfo> getModifyColumns() {
		return modifyColumns;
	}
	public void setModifyColumns(String columnName,ColumnModifyInfo modifyColumn) {
		this.modifyColumns.put(columnName,modifyColumn);
	}
}
